﻿using Blog.Core.Users;
using Blog.Entity.Users;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Application.Users
{
    public class UserAppService : IUserAppService
    {
        private readonly IUserService _userService;

        public UserAppService(IUserService userService)
        {
            this._userService = userService;
        }


        public async Task<User> GetUserAsync(long userId)
        {
            return await _userService.FirstOrDefultAsync(p => p.Id == userId);
        }


    }
}
